<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
    <title>useEffect的使用方式</title>
</head>

<body>
    <div>
        <p>1.为window对象添加滚动事件</p>
        <p>2.设置定时器让count数值每隔一秒增加1</p>
    </div>
</body>

</html>